package com.hyc.service;

import com.baidu.fsg.uid.UidGenerator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UIdGenService {
    @Autowired
    private UidGenerator cachedUidGenerator;

    public Long generateUid() {
        return cachedUidGenerator.getUID();
    }

}
